package filter;

import  javax.servlet.*;
import java.io.IOException;

/**
 * 05-Filter相关配置
 * ②过滤路径
 */
public class Demo04Filter implements Filter {



    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        System.out.println("Demo04Filter 过滤");
        chain.doFilter(request, response);//相当于执行Demo01Servlet

    }
}
